package com.itheima.tlias08_14.controller;


import com.itheima.tlias08_14.paramobject.LoginPO;
import com.itheima.tlias08_14.service.impl.LoginServiceImp;
import com.itheima.tlias08_14.utils.ResultUtil;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Resource
    LoginServiceImp loginServiceImp;
    @PostMapping("/login")
    public ResultUtil login(@RequestBody LoginPO ldto){
        return loginServiceImp.selectByUsername(ldto);
    }



}
